What are the 4 main components of a PLC